package org.meteorshower.employee_depart.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.cms_common.controller.BaseController;
import org.meteorshower.employee_depart.entity.EmpRewardAndPunish;
import org.meteorshower.employee_depart.service.EmpRewardAndPunishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * 员工奖惩类控制层
 * @author Meteorshower
 * @version 1.0
 * @since 2025-06-08
 * @see org.meteorshower.cms_common.controller.BaseController 继承自BaseController
 * @apiNote 默认CRUD已实现，更多额外功能需要额外添加
 * */
@RequestMapping("api/emp-rap")
@RestController
@ResponseBody
public class EmpRewardAndPunishController extends BaseController<EmpRewardAndPunish> {

    private final EmpRewardAndPunishService empRewardAndPunishService;

    @Autowired
    public EmpRewardAndPunishController(EmpRewardAndPunishService empRewardAndPunishService) {
        this.empRewardAndPunishService = empRewardAndPunishService;
    }

    @Override
    public IService<EmpRewardAndPunish> getService() {
        return empRewardAndPunishService;
    }
}
